home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / misc / medical / mendelge.cpt / MendelGenetics / MENDELIAN GENETICS I / card_24053.txt < prev    next >
Text File  |  1989-06-13  |  9KB  |  334 lines

  1. -- card: 24053 from stack: in
  2. -- bmap block id: 44935
  3. -- flags: 0000
  4. -- background id: 2665
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 00
  10. -- high flags: 0004
  11. -- rect: left=347 top=25 right=44 bottom=430
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 3
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: F1
  20.  
  21.  
  22. -- part 2 (button)
  23. -- low flags: 00
  24. -- high flags: 8003
  25. -- rect: left=280 top=102 right=125 bottom=321
  26. -- title width / last selected line: 0
  27. -- icon id / first selected line: 0 / 0
  28. -- text alignment: 1
  29. -- font id: 0
  30. -- text size: 12
  31. -- style flags: 0
  32. -- line height: 16
  33. -- part name: 1
  34. ----- HyperTalk script -----
  35. on mouseUp
  36.   if card field "F1" >= 0.00 and card field "F1" <=0.016 then
  37.     put "95%" into line 1 of card field "F4"
  38.     put "90% "into line 1 of card field "F5"
  39.   end if
  40.   if card field "F1" >=0.016 and card field "F1" <=0.15 then
  41.     put "90%" into line 1 of card field "F4"
  42.     put "70%" into line 1 of card field "F5"
  43.   end if
  44.   if card field "F1" >=0.15 and card field "F1" <=0.46 then
  45.     put "70%" into line 1 of card field "F4"
  46.     put "50%" into line 1 of card field "F5"
  47.   end if
  48.   if card field "F1" >=0.46 and card field "F1" <=1.07 then
  49.     put "50%" into line 1 of card field "F4"
  50.     put "30%" into line 1 of card field "F5"
  51.   end if
  52.   if card field "F1" >=1.07 and card field "F1" <=1.64 then
  53.     put "30%" into line 1 of card field "F4"
  54.     put "20%" into line 1 of card field "F5"
  55.   end if
  56.   if card field "F1" >= 1.64 and card field "F1" <=2.71 then
  57.     put "20%" into line 1 of card field "F4"
  58.     put "10%" into line 1 of card field "F5"
  59.   end if
  60.   if card field "F1" >=2.71 and card field "F1" <= 3.84 then
  61.     put "10%" into line 1 of card field "F4"
  62.     put "5%" into line 1 of card field "F5"
  63.   end if
  64.   if card field "F1" >=3.84 and card field "F1" <= 6.64 then
  65.     put "5%" into line 1 of card field "F4"
  66.     put "1%" into line 1 of card field "F5"
  67.   end if
  68.   if card field "F1" >=6.65 then
  69.     put "REJECT" into line 1 of card field F4
  70.     put "REVISE" into line 1 of card field F5
  71.   end if
  72. end mouseUp
  73.  
  74.  
  75.  
  76.  
  77. -- part 3 (button)
  78. -- low flags: 00
  79. -- high flags: 8003
  80. -- rect: left=365 top=102 right=125 bottom=406
  81. -- title width / last selected line: 0
  82. -- icon id / first selected line: 0 / 0
  83. -- text alignment: 1
  84. -- font id: 0
  85. -- text size: 12
  86. -- style flags: 0
  87. -- line height: 16
  88. -- part name: 2
  89. ----- HyperTalk script -----
  90. on mouseUp
  91.   if card field "F1" >=0.001 and card field "F1" <=0.21 then
  92.     put "95%" into line 1 of card field "F4"
  93.     put "90%" into line 1 of card field "F5"
  94.   end if
  95.   if card field "F1" >=0.21 and card field "F1" <=0.71 then
  96.     put "90%" into line 1 of card field "F4"
  97.     put "70%" into line 1 of card field "F5"
  98.   end if
  99.   if card field "F1" >=0.71 and card field "F1"<=1.39 then
  100.     put "70%" into line 1 of card field "F4"
  101.     put "50%" into line 1 of card field "F5"
  102.   end if
  103.   if card field "F1" >=1.39 and card field "F1" <=2.41 then
  104.     put "50%" into line 1 of card field "F4"
  105.     put "30%" into line 1 of card field "F5"
  106.   end if
  107.   if card field "F1" >=2.41 and card field "F1" <=3.22 then
  108.     put "30%" into line 1 of card field "F4"
  109.     put "20%" into line 1 of card field "F5"
  110.   end if
  111.   if card field "F1" >=3.22 and card field "F1" <=4.61 then
  112.     put "20%" into line 1 of card field "F4"
  113.     put "10%" into line 1 of card field "F5"
  114.   end if
  115.   if card field "F1" >=4.61 and card field "F1" <=5.99 then
  116.     put "10%" into line 1 of card field "F4"
  117.     put "5%" into line 1 of card field "F5"
  118.   end if
  119.   if card field "F1" >=5.99 and card field "F1" <=9.21 then
  120.     put "5%" into line 1 of card field "F4"
  121.     put "1%" into line 1 of card field "F5"
  122.   end if
  123.   if card field "F1" >=9.22 then
  124.     put "REVISE" into line 1 of card field "F4"
  125.     put "REJECT" into line 1 of card field "F5"
  126.   end if
  127. end mouseUp
  128.  
  129.  
  130.  
  131.  
  132.  
  133. -- part 4 (button)
  134. -- low flags: 00
  135. -- high flags: 8003
  136. -- rect: left=450 top=102 right=125 bottom=491
  137. -- title width / last selected line: 0
  138. -- icon id / first selected line: 0 / 0
  139. -- text alignment: 1
  140. -- font id: 0
  141. -- text size: 12
  142. -- style flags: 0
  143. -- line height: 16
  144. -- part name: 3
  145. ----- HyperTalk script -----
  146. on mouseUp
  147.   if card field "F1" >=.01 and card field "F1" <=.58 then
  148.     put "95%" into line 1 of card field "F4"
  149.     put "90%" into line 1 of card field "F5"
  150.   end if
  151.   if card field "F1" >=.58 and card field "F1" <=1.42 then
  152.     put "90%" into line 1 of card field "F4"
  153.     put "70%" into line 1 of card field "F5"
  154.   end if
  155.   if card field "F1" >=1.42 and card field "F1" <=2.37 then
  156.     put "70%" into line 1 of card field "F4"
  157.     put "50%" into line 1 of card field "F5"
  158.   end if
  159.   if card field "F1" >= 2.37 and card field "F1" <=3.67 then
  160.     put "50%" into line 1 of card field "F4"
  161.     put "30%" into line 1 of card field "F5"
  162.   end if
  163.   if card field "F1" >= 3.67 and card field "F1" <=4.64 then
  164.     put "30%" into line 1 of card field "F4"
  165.     put "20%" into line 1 of card field "F5"
  166.   end if
  167.   if card field "F1" >=4.64 and card field "F1" <=6.25 then
  168.     put "20%" into line 1 of card field "F4"
  169.     put "10%" into line 1 of card field "F5"
  170.   end if
  171.   if card field "F1" >=6.25 and card field "F1" <=7.82 then
  172.     put "10%" into line 1 of card field "F4"
  173.     put "5%" into line 1 of card field "F5"
  174.   end if
  175.   if card field "F1" >= 7.82 and card field "F1" <=11.35 then
  176.     put "5%" into line 1 of card field "F4"
  177.     put "1%" into line 1 of card field "F5"
  178.   end if
  179.   if card field "F1" >=11.36 then
  180.     put "REVISE" into line 1 of card field "F4"
  181.     put "REJECT" into line 1 of card field "F5"
  182.   end if
  183. end mouseUp
  184.  
  185.  
  186.  
  187.  
  188.  
  189. -- part 5 (field)
  190. -- low flags: 00
  191. -- high flags: 0000
  192. -- rect: left=407 top=193 right=216 bottom=473
  193. -- title width / last selected line: 0
  194. -- icon id / first selected line: 0 / 0
  195. -- text alignment: 0
  196. -- font id: 128
  197. -- text size: 10
  198. -- style flags: 256
  199. -- line height: 13
  200. -- part name: F4
  201.  
  202.  
  203. -- part 6 (field)
  204. -- low flags: 00
  205. -- high flags: 0000
  206. -- rect: left=295 top=192 right=214 bottom=357
  207. -- title width / last selected line: 0
  208. -- icon id / first selected line: 0 / 0
  209. -- text alignment: 0
  210. -- font id: 128
  211. -- text size: 10
  212. -- style flags: 256
  213. -- line height: 13
  214. -- part name: F5
  215.  
  216.  
  217. -- part 7 (button)
  218. -- low flags: 00
  219. -- high flags: 8003
  220. -- rect: left=164 top=315 right=337 bottom=264
  221. -- title width / last selected line: 0
  222. -- icon id / first selected line: 0 / 0
  223. -- text alignment: 1
  224. -- font id: 0
  225. -- text size: 12
  226. -- style flags: 0
  227. -- line height: 16
  228. -- part name: SUB HEADINGS
  229. ----- HyperTalk script -----
  230. on mouseUp
  231.   go to card id 36585
  232. end mouseUp
  233.  
  234.  
  235.  
  236.  
  237. -- part 8 (button)
  238. -- low flags: 00
  239. -- high flags: 8003
  240. -- rect: left=412 top=286 right=308 bottom=512
  241. -- title width / last selected line: 0
  242. -- icon id / first selected line: 0 / 0
  243. -- text alignment: 1
  244. -- font id: 0
  245. -- text size: 12
  246. -- style flags: 0
  247. -- line height: 16
  248. -- part name: NEW RATIO
  249. ----- HyperTalk script -----
  250. on mouseUp
  251.   go to card id 25732
  252. end mouseUp
  253.  
  254.  
  255.  
  256.  
  257. -- part 9 (button)
  258. -- low flags: 00
  259. -- high flags: 8003
  260. -- rect: left=307 top=316 right=338 bottom=407
  261. -- title width / last selected line: 0
  262. -- icon id / first selected line: 0 / 0
  263. -- text alignment: 1
  264. -- font id: 0
  265. -- text size: 12
  266. -- style flags: 0
  267. -- line height: 16
  268. -- part name: POISSON
  269. ----- HyperTalk script -----
  270. on mouseUp
  271.   go to card id 70308
  272. end mouseUp
  273.  
  274.  
  275.  
  276.  
  277. -- part 10 (button)
  278. -- low flags: 00
  279. -- high flags: 8003
  280. -- rect: left=415 top=314 right=338 bottom=511
  281. -- title width / last selected line: 0
  282. -- icon id / first selected line: 0 / 0
  283. -- text alignment: 1
  284. -- font id: 0
  285. -- text size: 12
  286. -- style flags: 0
  287. -- line height: 16
  288. -- part name: HOMOGENIETY
  289. ----- HyperTalk script -----
  290. on mouseUp
  291.   global sumchi
  292.   global pot
  293.   global bagI
  294.   global bagII
  295.   global bagV
  296.   global bagVI
  297.   add 1 to pot
  298.   go to card id 99981
  299.   if pot = 1 then
  300.     put the value of sumchi into card field f1
  301.   end if
  302.   if pot = 2 then
  303.     put the value of sumchi into card field f2
  304.   end if
  305.   if pot = 3 then
  306.     put the value of sumchi into card field f3
  307.   end if
  308.   if pot = 4 then
  309.     put the value of sumchi into card field f4
  310.   end if
  311.   add the value of bagI to card field obsI
  312.   add the value of bagV to card field expI
  313.   add the value of bagII to card field obsII
  314.   add the value of bagVI to card field expII
  315. end mouseUp
  316.  
  317.  
  318.  
  319.  
  320. -- part contents for background part 1
  321. ----- text -----
  322. CHI SQUARE
  323.  
  324. -- part contents for background part 2
  325. ----- text -----
  326. The individual chi square values for all of your observations have been summed and appear in the window at the top on the right. Select the number of degrees of freedom you are using in this analysis (remember they are one less than the number of data classes with which you are working). Therefore, if you have three classes of data, select button #2. Click on the appropriate button and the probability limits between which the chances of such a data spread occurring will appear in bold numbers. If the probability of such a spread occurring lies above 5%, the hypothesis can be accepted. If it lies below 5%, it is either rejected or additional data is gathered and the spread analyzed a second time. If you desire to change your hypothesis, click on the NEW RATIO button. If you wish to gather more data, you can reaccess your program through the SUB HEADINGS. If you wish to run a homogeniety chi-square, click on the HOMOGENIETY button.
  327.  
  328. -- part contents for card part 1
  329. ----- text -----
  330. INF
  331.  
  332. -- part contents for background part 8
  333. ----- text -----
  334. 188